import skinList from "../model/skinList.model.js";
export const createHeroSkillListService = async (data) => {
  return await skinList.bulkCreate(data);
};
export const uodateHeroSkillServeice = async (data) => {
  return await skinList.update(data, { where: { skinId: data.skinId } });
};
// 查询对应英雄id 的皮肤列表
export const getHeroSkillListService = async (heroId) => {
  return await skinList.findAll({ where: { heroId } });
};

// 删除英雄皮肤列表
export const deleteHeroSkillListService = async (skinId) => {
  return await skinList.destroy({ where: { skinId } });
};
